package cn.itsource.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("t_student")
public class StudentInfo {
    //学生id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    //学生姓名
    private String name;
    private String phone;
    private String qq;
    private String wechat;
    private Integer age;


    //班级id
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("classId")
    private Long classId = 0L;
    //班级编号
    @TableField("classNum")
    private String classNum;

    private String classname;

    private String birthday;

    private Integer sex; // '性别：0：男生 1：女生',
    private Integer ifrepeat; // '是否留级：0：留级 1：未留级',
    private String address;  // '现居住地址',
    private String idnumber;  // '身份证号码',
    private String emergencycontact;  // '紧急联系人',
    private String education;  // '学历',
    private String major;  // '专业',
    private String graduated;  // '毕业院校',
    private String graduationtime;  // '毕业时间',
    private String registration;  // '报名情况',
    private String remark;  // '备注',
    private String marketername;  // '营销人',
    private String helpersname;  // '协助人员',
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addtime;  // '添加时间',
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date modifytime;
    private Integer status; // 是否删除 0：未删除 1、删除

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getClassNum() {
        return classNum;
    }

    public void setClassNum(String classNum) {
        this.classNum = classNum;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getIfrepeat() {
        return ifrepeat;
    }

    public void setIfrepeat(Integer ifrepeat) {
        this.ifrepeat = ifrepeat;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    public String getEmergencycontact() {
        return emergencycontact;
    }

    public void setEmergencycontact(String emergencycontact) {
        this.emergencycontact = emergencycontact;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getGraduated() {
        return graduated;
    }

    public void setGraduated(String graduated) {
        this.graduated = graduated;
    }

    public String getGraduationtime() {
        return graduationtime;
    }

    public void setGraduationtime(String graduationtime) {
        this.graduationtime = graduationtime;
    }

    public String getRegistration() {
        return registration;
    }

    public void setRegistration(String registration) {
        this.registration = registration;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getMarketername() {
        return marketername;
    }

    public void setMarketername(String marketername) {
        this.marketername = marketername;
    }

    public String getHelpersname() {
        return helpersname;
    }

    public void setHelpersname(String helpersname) {
        this.helpersname = helpersname;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
